<div class="row">
  <p id="notice"><%= notice %></p>
  <h1>视频分类管理</h1>
</div>
<div class="row">
  <em>
    头条 => 资讯，
    养生 => 养生，
    长寿 => 老年，
    健康管理 => 常识，
    天天护理 => 美容，
    寻医 => 医疗，
    母婴 => 儿科，
    两性健康 => 两性，
    健身减肥 => 健身，
  </em>
  <%#= link_to '添加', new_backend_video_category_path, class: "btn btn-info" %>
  <hr>
  <table class="table table-striped table-bordered table-hover table-condensed">
    <thead>
      <tr class="active">
        <th>分类名称</th>
        <th>数量</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <% @video_categories.each do |video_category|%>
        <tr>
          <td><%= video_category.name %></td>
          <td><%= video_category.videos.all.size %></td>
          <td>
            <%= link_to '视频', backend_video_category_videos_path(video_category), class: "btn btn-info"%>
            <%#= link_to '修改', edit_backend_video_category_path(video_category), class: "btn btn-warning"%>
            <%#= link_to '下架', backend_video_category_path(video_category), method: :delete, data: { confirm: 'Are you sure?' } , class: "btn btn-danger" %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= paginate @video_categories %>
</div>
